<template>
  <nav class="navbar">
    <div class="navbar-container">
      <!-- 左侧Logo和标题 -->
      <div class="navbar-brand">
        <h1>{{ $t('navbar.logo') }}</h1>
      </div>
      
      <!-- 中间导航链接（仅在桌面端显示） -->
      <div class="navbar-links">
        <router-link to="/" class="nav-link" exact>{{ $t('navbar.home') }}</router-link>
        <router-link to="/search" class="nav-link">{{ $t('navbar.search') }}</router-link>
      </div>
    </div>
  </nav>
</template>

<script>
export default {
  name: 'Navbar',
  data() {
    return {
      // 简化版导航栏，不需要登录相关状态
    };
  }
};
</script>

<style scoped>
/* 导航栏基本样式 */
.navbar {
  background-color: #c20c0c;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

/* 导航栏容器 */
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

/* 品牌Logo和标题 */
.navbar-brand h1 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

/* 导航链接（桌面端） */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.exact-active {
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 在移动端隐藏中间导航链接 */
  .navbar-links {
    display: none;
  }
  
  .navbar-brand h1 {
    font-size: 18px;
  }
}
</style>